package com.shiroha.video.mapper;

import com.mybatisflex.core.BaseMapper;
import com.mybatisflex.core.paginate.Page;
import com.shiroha.video.pojo.Comment;
import com.shiroha.video.pojo.vo.CommentVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.UUID;

@Mapper
public interface CommentMapper extends BaseMapper<Comment> {
    Page<CommentVO> selectCommentByPage(@Param("workId") Long workId, @Param("userId") UUID userId);

    int pinCommentById(@Param("userId") UUID userId, @Param("commentId") Long commentId);

    int deleteCommentById(@Param("userId") UUID userId, @Param("commentId") Long commentId);
}
